package com.rain.entity;

import java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import com.rain.enums.DateTimePatternEnum;
import com.rain.utils.DateUtil;

/**
 * @auther: rain
 * @description: 子系统信息表
 * @date: 2025-10-31
 */
public class EtSubsystemInfo implements Serializable {

	/**
	 * 子系统ID
	 */
	private Integer id;

	/**
	 * 子系统名称
	 */
	private String name;

	/**
	 * 数据库类型（mysql，oracle，sqlserver等）
	 */
	private String dbType;

	/**
	 * 数据库IP
	 */
	private String dbIp;

	/**
	 * 数据库端口

	 */
	private String dbPort;

	/**
	 * 数据库名
	 */
	private String dbSchema;

	/**
	 * 数据库密码
	 */
	private String dbUsername;

	/**
	 * 数据库密码
	 */
	private String dbPassword;

	/**
	 * 系统创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date systemCreateTime;

	/**
	 * 系统更新时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date systemUpdateTime;

	/**
	 * 单位ID
	 */
	private Integer belongunit;

	public void setId(Integer id)  { 
		this.id = id;
	}

	public Integer getId( ) { 
		return this.id;
	}

	public void setName(String name)  { 
		this.name = name;
	}

	public String getName( ) { 
		return this.name;
	}

	public void setDbType(String dbType)  { 
		this.dbType = dbType;
	}

	public String getDbType( ) { 
		return this.dbType;
	}

	public void setDbIp(String dbIp)  { 
		this.dbIp = dbIp;
	}

	public String getDbIp( ) { 
		return this.dbIp;
	}

	public void setDbPort(String dbPort)  { 
		this.dbPort = dbPort;
	}

	public String getDbPort( ) { 
		return this.dbPort;
	}

	public void setDbSchema(String dbSchema)  { 
		this.dbSchema = dbSchema;
	}

	public String getDbSchema( ) { 
		return this.dbSchema;
	}

	public void setDbUsername(String dbUsername)  { 
		this.dbUsername = dbUsername;
	}

	public String getDbUsername( ) { 
		return this.dbUsername;
	}

	public void setDbPassword(String dbPassword)  { 
		this.dbPassword = dbPassword;
	}

	public String getDbPassword( ) { 
		return this.dbPassword;
	}

	public void setSystemCreateTime(Date systemCreateTime)  { 
		this.systemCreateTime = systemCreateTime;
	}

	public Date getSystemCreateTime( ) { 
		return this.systemCreateTime;
	}

	public void setSystemUpdateTime(Date systemUpdateTime)  { 
		this.systemUpdateTime = systemUpdateTime;
	}

	public Date getSystemUpdateTime( ) { 
		return this.systemUpdateTime;
	}

	public void setBelongunit(Integer belongunit)  { 
		this.belongunit = belongunit;
	}

	public Integer getBelongunit( ) { 
		return this.belongunit;
	}

	@Override
	public String toString()  {
		return " EtSubsystemInfo { id: " + id + ", " + "name: " + name + ", " + "dbType: " + dbType + ", " + "dbIp: " + dbIp + ", " + "dbPort: " + dbPort + ", " + "dbSchema: " + dbSchema + ", " + "dbUsername: " + dbUsername + ", " + "dbPassword: " + dbPassword + ", " + "systemCreateTime: " + DateUtil.format(systemCreateTime, DateTimePatternEnum.YYYY_MM_DD.getPattern()) + ", " + "systemUpdateTime: " + DateUtil.format(systemUpdateTime, DateTimePatternEnum.YYYY_MM_DD.getPattern()) + ", " + "belongunit: " + belongunit + " } ";
	}
}